--- (8)Debian5.0(lenny)のインストール ---
a) loader.o を用いて起動用Linuxと別領域にlennyをインストール
※全手順・表示を洩らさず(バイナリイメージ展開の表示は除く)連続で1ページに記載しました!!
以下、行数は1000行少々になります。
参考サイト:
玄箱/Debian/カーネル2.6(http://www.revulo.com/kuro-box/Debian/Kernel2.6.html)
玄箱に Debian 5.0 (lenny) をインストールする
(http://www.revulo.com/kuro-box/Debian/lenny.html)
HDDとしては、8GBのSSDを用いました。この図のような感じになります。
色分け: 黒:画面表示 赤:入力 青:私が記載したコメント
/* ------------------------------------------------------------------------- */
まず、EMモードで玄箱を起動します。
EMモードにする方法は以下の3種類
・初期化したHDDを装着して起動する
・玄箱背面の赤いボタン(設定初期化)を3秒以上押して停止させた後電源をONにする
・Linuxが動作している場合、次のコマンドを入力し、再起動する
カーネル 2.4 の場合 「echo -n 'NGNG' > /dev/fl3」
カーネル 2.6 の場合 「echo -n 'NGNG' > /dev/mtdblock2」
/* ------------------------------------------------------------------------- */
/* さあ、それではスイッチON! */
******* Product Information *******
----------------------------------
Product Name: KURO-BOX(IETSUNA)
VER: 1.02
Date: 2004/4/16 11:46:41
----------------------------------
Firmware check:done.
>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.17_kuro-box (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3 20010315 (release/MontaVista)) #4 2004? 4キ・16ニ・カ簣ヒニ・11:45:05 JST
KURO-BOX (C) 2004 KUROUTO-SHIKOU.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 24.470370 MHz
rtc sec count 1292913249
Calibrating delay loop... 130.25 BogoMIPS
Memory: 60532k available (1124k kernel code, 520k data, 188k init, 0k highmem)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: TS8GSSD25-S, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
hda: 15924384 sectors (8153 MB) w/1KiB Cache, CHS=15798/16/63, UDMA(66)
Partition check:
hda: hda1 hda2 hda3 hda4
loop: loaded (max 8 devices)
FLASHDISK:Initialized [FUJITSU MBM29PL32TM]
Linux Tulip driver version 0.9.15-pre9 (Nov 6, 2001)
tulip0: MII transceiver #1 config 3100 status 7849 advertising 05e1.
eth0: ADMtek Comet rev 17 at 0xbfff00, 00:0D:0B:87:5C:5F, IRQ 16.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 2077k freed
Boot from initrd.
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Boot from initrd.
VFS: Mounted root (ext2 filesystem).
change_root: old root has d_count=5
Trying to unmount old root ... <3>error -16
Change root to /initrd: error -2
Freeing unused kernel memory: 188k init
kmod: failed to exec /sbin/modprobe -s -k char-major-4, errno = 2
INIT: version 2.78 booting
[: 0: unexpected operator
Mounting local filesystems...
none on /dev/pts type devpts (rw,gid=5,mode=20)
Cleaning: /tmp .
Configuration network interface: lo eth0
Starting system log daemon: syslogd klogd.
INIT: Entering runlevel: 2
Starting AP serv daemon:AP serv starting on eth0
Starting internet superserver: inetd.
Start services: ppc_uartd
Kroutoshikou KURO-BOX (IETSUNA)
kernel 2.4.17-kuro-box on ppc
KURO-BOX-EM login: root
Password:[デフォルトは「kuro」]
#
/* ------------------------------------------------------------------------- */
次にHDDを初期化、領域分割、フォーマットを行います。
使用するコマンドは「/sbin/mfdisk」と「/sbin/mke2fs」
使用HDDはTrancsendのSSD TS8GSSD25-S(8GB)
領域分割は以下の通り
hda1:1GB debian3.0(woody, kernel 2.4.17) ブート用
hda2:256MB SWAP領域
hda3:2GB debian5.0(lenny, kernel 2.6.25.1)
hda4:残り、データ保存用
/* ------------------------------------------------------------------------- */
# /sbin/mfdisk -e /dev/hda /* HDD全領域を削除 */
delete partition 1
delete partition 2
delete partition 3
delete partition 4
create partitions...
deleate all partitions.
The partition table has been altered!
Syncing disks.
#
# /sbin/mfdisk -c /dev/hda /* 続いて領域確保(以下、対話形式です) */
Command (m for help): n /* 第1領域を1GB確保 */
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-15798, default 1):[入力なしでenter]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-15798, default 15798): +1000M
Command (m for help): n /* 第2領域を256MB確保 */
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (2033-15798, default 2033):[入力なしでenter]
Using default value 2033
Last cylinder or +size or +sizeM or +sizeK (2033-15798, default 15798): +256M
Command (m for help): n /* 第3領域を1GB確保 */
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (2554-15798, default 2554):[入力なしでenter]
Using default value 2554
Last cylinder or +size or +sizeM or +sizeK (2554-15798, default 15798): +2000M
Command (m for help): n /* 第4領域は残り全部 */
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 4
First cylinder (6618-15798, default 6618):[入力なしでenter]
Using default value 6618
Last cylinder or +size or +sizeM or +sizeK (6618-15798, default 15798):[入力なしでenter]
Using default value 15798
Command (m for help): t /* 第2領域をSWAP用に予約(82番) */
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap)
Command (m for help): p /* 結果の一覧を表示 */
Disk /dev/hda: 16 heads, 63 sectors, 15798 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 2032 1024096+ 83 Linux
/dev/hda2 2033 2553 26258 82 Linux swap
/dev/hda3 2554 6617 2048256 83 Linux
/dev/hda4 6618 15798 4627224 83 Linux
Command (m for help): w /* 最後に分割結果をHDDに書込み */
The partition table has been altered!
Syncing disks.
#
# /sbin/mke2fs -j /dev/hda1 /* 第1領域をフォーマット(Linux用) */
mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
128256 inodes, 256024 blocks
12801 blocks (5.00%) reserved for the super user
First data block=0
8 block groups
32768 blocks per group, 32768 fragments per group
16032 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
#
# /sbin/mkswap /dev/hda2 /* 第2領域をSWAPに設定 */
Setting up swapspace version 1, size = 268881920 bytes
#
# /sbin/mke2fs -j /dev/hda3 /* 第3領域をフォーマット(Linux用) */
mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
256512 inodes, 512064 blocks
25603 blocks (5.00%) reserved for the super user
First data block=0
16 block groups
32768 blocks per group, 32768 fragments per group
16032 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
#
# /sbin/mke2fs -j -m 0 /dev/hda4 /* 第4領域をフォーマット(予約なし) */
mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
579456 inodes, 1156806 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
36 block groups
32768 blocks per group, 32768 fragments per group
16096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
#
# /sbin/tune2fs -m 0 /dev/hda4 /* 念の為もう一度hda4を予約なしに */
tune2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09
Setting reserved blocks percentage to 0 (0 blocks)
#
/* ------------------------------------------------------------------------- */
/* 次にマウント */
# mount -t ext3 /dev/hda1 /mnt
# mount -t ext3 /dev/hda3 /mnt2
# mkdir /mnt3
# mount -t ext3 /dev/hda4 /mnt3
#
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/ram0 9.5M 5.0M 4.5M 53% /
/dev/hda1 984.3M 16.0M 918.3M 2% /mnt
/dev/hda3 1.9G 32.1M 1.8G 2% /mnt2
/dev/hda4 4.3G 32.1M 4.3G 1% /mnt3
#
/* -------------------------------------------------------------------------
続いてデータ領域(hda4)に必要なデータをFTPでコピー
FTPクライアントはWindowsXPマシンで
フリーソフト「FFFTP ver.1.97a」を使用
http://www2.biglobe.ne.jp/~sota/ffftp.html
種類毎に3つのフォルダを設けて保存
uouo:debian_2006_06_10_dist.tgz(Debian3.0 woody)
玄箱うぉううぉう氏(http://kuro.dsk.jp/)より
kernel:カーネル2.6.25.1のイメージ、モジュール、loader.o
Genbako kernel collection(http://www.genbako.com/)より
kernelimage-2.6.25.1-kuroBOX.tgz
modules-2.6.25.1-kuroBOX.tgz
loader.o
lenny:debian-lenny-kuroBOX-20090317.tgz(Debian5.0 lenny)
Revulo's Laboratory
(http://www.revulo.com/kuro-box/Debian/lenny.html)より
------------------------------------------------------------------------- */
# cd /mnt3
# pwd
/mnt3
# mkdir uouo
# mkdir kernel
# mkdir lenny
# ls
kernel lenny uouo
#
/* -------------------------------------------------------------------------
ここではシリアルコンソールを使用しているので、
WindowsXPマシンとIPアドレスを合わせる作業をする
Telnet接続のコンソールでは不用
------------------------------------------------------------------------- */
# vi /etc/network/interfaces
#
#cat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.0.58
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
#
# /etc/init.d/networking restart
Deconfiguration network interface: lo eth0
Configuration network interface: lo eth0
#
/* -------------------------------------------------------------------------
データの転送が済んだら確認
------------------------------------------------------------------------- */
# ls /mnt3/uouo
debian_2006_06_10_dist.tgz
#
# ls /mnt3/kernel
kernelimage-2.6.25.1-kuroBOX.tgz
modules-2.6.25.1-kuroBOX.tgz
loader.o
#
# ls /mnt3/lenny
debian-lenny-kuroBOX-20090317.tgz
#
/* -------------------------------------------------------------------------
ブート用のDebian3.0を hda1(マウントポイントは /mnt)に展開
------------------------------------------------------------------------- */
# cd /mnt
# pwd
/mnt
# tar xvzf /mnt3/uouo/debian_2006_06_10_dist.tgz
・
・
展開されたファイルがズラズラ表示される
・
・
#
/* hda1(/mnt)の確認 */
# pwd
/mnt
# ls
bin dev home proc tmp
boot etc initrd mnt root usr
cdrom floppy lib opt sbin var
#
/* -------------------------------------------------------------------------
hda1に展開されたDebianのネットワーク設定をここで直しておく
------------------------------------------------------------------------- */
# vi /mnt/etc/network/interfaces
#
# cat /mnt/etc/network/interfaces
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
iface eth0 inet static
address 192.168.0.58
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
iface lo inet loopback
auto eth0 lo
#
# vi /mnt/etc/hosts
#
# cat /mnt/etc/hosts
127.0.0.1 localhost
192.168.0.58 KURO-BOX
#
# vi /mnt/etc/hosts.allow
#
# cat /mnt/etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5), hosts_options(5)
# and /usr/doc/netbase/portmapper.txt.gz
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper. See portmap(8)
# and /usr/doc/portmap/portmapper.txt.gz for further information.
#
#ALL : 192.168.0.0/255.255.255.0
ALL : ALL : ALLOW
#
# vi /mnt/etc/resolv.conf
#
# cat /mnt/etc/resolv.conf
search
nameserver 192.168.0.1
#
/* -------------------------------------------------------------------------
これで第1段階のブート用Debianの導入終了
EMモードから通常モードに復帰させる
------------------------------------------------------------------------- */
# echo -n 'OKOK' > /dev/fl3
# reboot
INIT: Switching to runlevel: 6
Broadcast message from root (console) Tue Dec 21 17:35:50 2010...
The system is going down for reboot NOW !!
INIT: Sending processes the TERM signal
INIT: Sending processeStopping internet superserver: inetd.
Stop services: ppc_uartdStopping system log daemon: klogd syslogd.
Stop services: ppc_uartd
Sending all processes the TERM signal... Exiting Syslogd!
dhcpcd[39]: terminating on signal 15
done.
Sending all processes the KILL signal... done.
Unmounting remote filesystems... done.
Deactivating swap... swapoff: not found
done.
Unmounting local filesystems... done.
Rebooting... flushing ide devices: hda
Restarting system.
******* Product Information *******
----------------------------------
Product Name: KURO-BOX(IETSUNA)
VER: 1.02
Date: 2004/4/16 11:46:41
----------------------------------
Firmware check:done.
>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.17_kuro-box (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3 20010315 (release/MontaVista)) #4 2004? 4キ・16ニ・カ簣ヒニ・11:45:05 JST
KURO-BOX (C) 2004 KUROUTO-SHIKOU.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 24.360639 MHz
rtc sec count 1292920595
Calibrating delay loop... 129.84 BogoMIPS
Memory: 60532k available (1124k kernel code, 520k data, 188k init, 0k highmem)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: TS8GSSD25-S, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
hda: 15924384 sectors (8153 MB) w/1KiB Cache, CHS=15798/16/63, UDMA(66)
Partition check:
hda: hda1 hda2 hda3 hda4
loop: loaded (max 8 devices)
FLASHDISK:Initialized [FUJITSU MBM29PL32TM]
Linux Tulip driver version 0.9.15-pre9 (Nov 6, 2001)
tulip0: MII transceiver #1 config 3100 status 7849 advertising 05e1.
eth0: ADMtek Comet rev 17 at 0xbfff00, 00:0D:0B:87:5C:5F, IRQ 16.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 2077k freed
Boot from /dev/hda1.
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Boot from /dev/hda1.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
change_root: old root has d_count=2
Freeing unused kernel memory: 188k init
modprobe: modprobe: cannot create /var/log/ksymoops/20101221.log Read-only file system
modprobe: modprobe: Can't locate module char-major-4
modprobe: modprobe: cannot create /var/log/ksymoops/20101221.log Read-only file system
INIT: version 2.84 booting
Activating swap.
Adding Swap: 262576k swap-space (priority -1)
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,1), internal journal
System time was Tue Dec 21 08:36:40 UTC 2010.
Setting the System Clock using the Hardware Clock as reference...
hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=515: Unknown error 515.
System Clock set. System local time is now Tue Dec 21 08:36:40 UTC 2010.
Calculating module dependencies... done.
Loading modules:
Checking all file systems...
fsck 1.27 (8-Mar-2002)
Setting kernel variables.
Mounting local filesystems...
mount: none already mounted or /dev/pts busy
mount: according to mtab, devpts ikjournald starting. Commit interval 5 seconds
s already mounteEXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,3), d on /dev/pts
internal journal
EXT3-fs: mounted filesystem with ordered data mode.
/dev/hda3 on /mnt type ext3 (rw,noatime)
Running 0dns-down to make sure resolv.conf is ok...done.
Cleaning: /etc/network/ifstate.
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: done.
Setting the System Clock using the Hardware Clock as reference...
hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=515: Unknown error 515.
System Clock set. Local time: Tue Dec 21 17:36:42 JST 2010
Cleaning: /tmp /var/lock /var/run.
Initializing random number generator... done.
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 2
kernel not found
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting MTA: 2010-12-21 17:36:44 Failed to open configuration file /etc/exim/exim.conf
Starting internet superserver: inetd.
Starting KURO-BOX event daemon: kuroevtd.
ProFTPd is started from inetd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
Debian GNU/Linux 3.0 KURO-BOX ttyS0
KURO-BOX login: root
Password:[パスワードの入力] (デフォルトのパスワードはユーザ名に 同じ)
Last login: Sun Apr 25 19:16:34 2004 from 192.168.0.12 on pts/0
Linux KURO-BOX 2.4.17_kuro-box #4 2004? 4キ・16ニ・カ簣ヒニ・11:45:05 JST ppc unknown
Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the individual files in /usr/share/doc/*/copyright
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
1 failure since last login. Last was 2004 on pts/0.
KURO-BOX:~#
/* -------------------------------------------------------------------------
ここまでがブート用Debian3.0の起動時の表示です。
Telnetで作業している方は見られないので参考に載せました。
------------------------------------------------------------------------- */
KURO-BOX:~# cd /
KURO-BOX:/# ls
bin cdrom etc home lib mnt proc sbin usr
boot dev floppy initrd lost+found opt root tmp var
KURO-BOX:/#
KURO-BOX:/# df -h /* HDDの各領域のマウント状況を確認 */
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 984M 135M 799M 15% /
/dev/hda3 1.9G 33M 1.7G 2% /mnt
KURO-BOX:/#
KURO-BOX:/# /* hda4(データ用領域)がマウントされていないので... */
KURO-BOX:/# mkdir /mnt2 /* hda4のマウント用ディレクトリ作成 */
KURO-BOX:/# mount -t ext3 /dev/hda4 /mnt2 /* hda4を/mnt2にマウント */
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,4), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
KURO-BOX:/#
KURO-BOX:/# df -h /* HDDの各領域のマウント状況を確認 */
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 984M 135M 799M 15% /
/dev/hda3 1.9G 33M 1.7G 2% /mnt
/dev/hda4 4.3G 123M 4.2G 3% /mnt2
KURO-BOX:/#
/* -------------------------------------------------------------------------
これよりカーネル2.6.25.1のインストール
------------------------------------------------------------------------- */
KURO-BOX:/# ls /boot /* /bootディレクトリが空なのを確認 */
KURO-BOX:/#
KURO-BOX:/# ls /mnt2/kernel /* カーネルの元データを確認 */
kernelimage-2.6.25.1-kuroBOX.tgz loader.o modules-2.6.25.1-kuroBOX.tgz
KURO-BOX:/#
/* loader.o を /boot にコピー */
KURO-BOX:/# cp /mnt2/kernel/loader.o /boot/loader.o
KURO-BOX:/#
KURO-BOX:/# ls /boot
loader.o
/* カーネルのイメージを /boot に展開 */
KURO-BOX:/# cd /boot
KURO-BOX:/boot# tar xvfz /mnt2/kernel/kernelimage-2.6.25.1-kuroBOX.tgz
.config
System.map
vmlinux.bin
uImage
KURO-BOX:/boot# ls /boot /* /boot の内容を確認 */
System.map loader.o uImage vmlinux.bin
KURO-BOX:/boot#
/* -------------------------------------------------------------------------
続いて Debian5.0(lenny) を /mnt(/dev/hda3 の/)にインストール
------------------------------------------------------------------------- */
KURO-BOX:/boot# ls /mnt2/lenny /* lennyの元データを確認 */
debian-lenny-kuroBOX-20090317.tgz
KURO-BOX:/boot#
/* lenny のイメージを /mnt に展開 */
KURO-BOX:/boot# cd /mnt
KURO-BOX:/mnt# tar xvfz /mnt2/lenny/debian-lenny-kuroBOX-20090317.tgz
・
・
展開されたファイルがズラズラ表示される
・
・
KURO-BOX:/mnt#
KURO-BOX:/mnt# ls /* /mnt の内容を確認 */
bin dev home mnt proc sbin srv tmp var
boot etc lib media opt root selinux sys usr
KURO-BOX:/mnt#
/* -------------------------------------------------------------------------
/mnt/lib/modules (/dev/hda3 の /lib/modules)にカーネルモジュールを展開
------------------------------------------------------------------------- */
KURO-BOX:/mnt# cd /mnt/lib/modules
KURO-BOX:/mnt/lib/modules# tar xvfz /mnt2/kernel/modules-2.6.25.1-kuroBOX.tgz
・
・
展開されたファイルがズラズラ表示される
・
・
KURO-BOX:/mnt/lib/modules#
/* -------------------------------------------------------------------------
次回起動するHDDの領域を hda3 に変更する
/etc ディレクトリにのkuro_load_paramの中の「OPTIONS」を変更
※デフォルトは「OPTIONS="root=/dev/hda1"」
------------------------------------------------------------------------- */
KURO-BOX:/# vi /etc/kuro_load_param
KURO-BOX:/#
KURO-BOX:/# cat /etc/kuro_load_param
FILENAME="/var/tmp/kernel_loading..."
KERNEL="/boot/vmlinux.bin"
LOADER="/lib/modules/2.4.17_kuro-box/kernel/loader.o"
OPTIONS="root=/dev/hda3"
#INITRD="/root/initrd.gz"
KURO-BOX:/#
/* -------------------------------------------------------------------------
再起動の前に lenny のネットワーク設定を使用環境に合わせておく
------------------------------------------------------------------------- */
KURO-BOX:/mnt# vi /mnt/etc/network/interfaces
KURO-BOX:/mnt#
KURO-BOX:/mnt# cat /mnt/etc/network/interfaces
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
iface eth0 inet static
address 192.168.0.58
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
iface lo inet loopback
auto eth0 lo
KURO-BOX:/mnt#
KURO-BOX:/mnt# vi /mnt/etc/hosts
KURO-BOX:/mnt#
KURO-BOX:/mnt# cat /mnt/etc/hosts
127.0.0.1 localhost
192.168.0.58 KURO-BOX
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
KURO-BOX:/mnt#
KURO-BOX:/mnt# vi /mnt/etc/hosts.allow
KURO-BOX:/mnt#
KURO-BOX:/mnt# cat /mnt/etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5), hosts_options(5)
# and /usr/doc/netbase/portmapper.txt.gz
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8), rpc.mountd(8) and
# /usr/share/doc/portmap/portmapper.txt.gz for further information.
#
#ALL: 192.168.0.0/255.255.0.0
ALL : ALL : ALLOW
KURO-BOX:/mnt#
KURO-BOX:/mnt# vi /mnt/etc/resolv.conf
KURO-BOX:/mnt#
KURO-BOX:/mnt# cat /mnt/etc/resolv.conf
search
nameserver 192.168.0.1
KURO-BOX:/mnt#
/* -------------------------------------------------------------------------
これで作業終了! 再起動します
------------------------------------------------------------------------- */
KURO-BOX:/# reboot
Broadcast message from root (ttyS0) (Tue Dec 21 18:32:43 2010):
The system is going down for reboot NOW!
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
INIT: SendinStopping periodic command scheduler: cron.
Stopping MTA: No /usr/sbin/exim found running; none killed.
exim.
Stopping internet superserver: inetd.
Stopping KURO-BOX event daemon: kuroevtd.
Saving the System Clock time to the Hardware Clock...
hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=515: Unknown error 515.
Hardware Clock updated to Tue Dec 21 18:32:50 JST 2010.
ProFTPd is started from inetd.
Stopping deferred execution scheduler: atd.
Stopping kernel log daemon: klogd.
Stopping system log daemon: syslogd.
Sending all processes the TERM signal... done.
Sending all processes the KILL signal... done.
Saving random seed... done.
Unmounting remote filesystems... done.
Deconfiguring network interfaces: done.
Deactivating swap... done.
Unmounting local filesystems... done.
Rebooting... flushing ide devices: hda
Restarting system.
******* Product Information *******
----------------------------------
Product Name: KURO-BOX(IETSUNA)
VER: 1.02
Date: 2004/4/16 11:46:41
----------------------------------
Firmware check:done.
>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.17_kuro-box (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3 20010315 (release/MontaVista)) #4 2004? 4キ・16ニ・カ簣ヒニ・11:45:05 JST
KURO-BOX (C) 2004 KUROUTO-SHIKOU.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 24.235389 MHz
rtc sec count 1292923988
Calibrating delay loop... 129.02 BogoMIPS
Memory: 60532k available (1124k kernel code, 520k data, 188k init, 0k highmem)
Dentry-cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Disabling the Out Of Memory Killer
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
block: 128 slots per queue, batch=32
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: TS8GSSD25-S, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
hda: 15924384 sectors (8153 MB) w/1KiB Cache, CHS=15798/16/63, UDMA(66)
Partition check:
hda: hda1 hda2 hda3 hda4
loop: loaded (max 8 devices)
FLASHDISK:Initialized [FUJITSU MBM29PL32TM]
Linux Tulip driver version 0.9.15-pre9 (Nov 6, 2001)
tulip0: MII transceiver #1 config 3100 status 7849 advertising 05e1.
eth0: ADMtek Comet rev 17 at 0xbfff00, 00:0D:0B:87:5C:5F, IRQ 16.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 2077k freed
Boot from /dev/hda1.
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Boot from /dev/hda1.
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
change_root: old root has d_count=2
Freeing unused kernel memory: 188k init
modprobe: modprobe: cannot create /var/log/ksymoops/20101221.log Read-only file system
modprobe: modprobe: Can't locate module char-major-4
modprobe: modprobe: cannot create /var/log/ksymoops/20101221.log Read-only file system
INIT: version 2.84 booting
Activating swap.
Adding Swap: 262576k swap-space (priority -1)
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,1), internal journal
System time was Tue Dec 21 09:33:13 UTC 2010.
Setting the System Clock using the Hardware Clock as reference...
hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=515: Unknown error 515.
System Clock set. System local time is now Tue Dec 21 09:33:13 UTC 2010.
Calculating module dependencies... done.
Loading modules:
Checking all file systems...
fsck 1.27 (8-Mar-2002)
Setting kernel variables.
Mounting local filesystems...
mount: none already mounted or /dev/pts busy
mount: according to mtab, devpts ikjournald starting. Commit interval 5 seconds
s already mounteEXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,3), d on /dev/pts
internal journal
EXT3-fs: mounted filesystem with ordered data mode.
/dev/hda3 on /mnt type ext3 (rw,noatime)
Running 0dns-down to make sure resolv.conf is ok...done.
Cleaning: /etc/network/ifstate.
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: done.
Setting the System Clock using the Hardware Clock as reference...
hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=515: Unknown error 515.
System Clock set. Local time: Tue Dec 21 18:33:16 JST 2010
Cleaning: /tmp /var/lock /var/run.
Initializing random number generator... done.
Recovering nvi editor sessions... done.
INIT: Entering runlevel: 2 /** ここまで3.0と同じ **/
INIT: Switching to runlevel: 3 /** ここから5.0にチェンジ **/
INIT:Stopping periodic command scheduler: cron.
Stopping MTA: No /usr/sbin/exim found running; none killed.
exim.
Stopping internet superserver: inetd.
Stopping KURO-BOX event daemon: kuroevtd.
ProFTPd is started from inetd.
Stopping deferred execution scheduler: atd.
Stopping kernel log daemon: klogd.
Stopping system log daemon: syslogd.
Sending all processes the TERM signal... done.
Sending all processes the KILL signal... done.
Initializing random number generator... done.
Unmounting remote filesystems... done.
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: ifup: interface eth0 already configured
ifup: interface lo already configured
done.
Deactivating swap... done.
Unmounting local filesystems... done.
Warning: loading /lib/modules/2.loader module loaded
4.17_kuro-box/kekernel=/boot/vmlinux.bin
rnel/loader.o wicmdline=root=/dev/hda3
ll taint the kernel: forced load
KERNELBASE=c0000000 (r6=306c809 r7=306c817) r3=0 (r4=0 r5=0)
Linux version 2.6.25.1-kurobox (hiroyuki@hg-lan) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #10 Sun May 4 21:50:38 JST 2008
Early serial console at MMIO 0x80004600 (options '57600n8')
console [uart0] enabled
BUFFALO Network Attached Storage Series
(C) 2002-2005 BUFFALO INC.
Zone PFN ranges:
DMA 0 -> 16384
Normal 16384 -> 16384
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0: 0 -> 16384
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: root=/dev/hda3 console=ttyS0,57600
OpenPIC Version 1.2 (1 CPUs and 11 IRQ sources) at 80040000
PID hash table entries: 256 (order: 8, 1024 bytes)
decrementer frequency = 24.391680 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 61824k available (2188k kernel code, 760k data, 140k init, 0k highmem)
Mount-cache hash table entries: 512
net_namespace: 152 bytes
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 1 of device 0000:00:00.0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
I2C: rs5c372 RTC driver successfully loaded
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x80004600 (irq = 26) is a 16550A
console handover: boot [uart0] -> real [ttyS0]
serial8250.1: ttyS1 at MMIO 0x80004500 (irq = 25) is a 16550A
brd: module loaded
loop: module loaded
Linux Tulip driver version 1.1.15 (Feb 27, 2007)
tulip0: MII transceiver #1 config 1000 status 786d advertising 05e1.
eth0: ADMtek Comet rev 17 at Port 0xbfff00, 00:0d:0b:87:5c:5f, IRQ 16.
Uniform Multi-Platform E-IDE driver
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SiI680: IDE controller (0x1095:0x0680 rev 0x02) at PCI slot 0000:00:0c.0
siimage: IDE controller MMIO ports not available.
SiI680: BASE CLOCK == 100
SiI680: 100% native mode on irq 17
ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:DMA, hdb:PIO
ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:PIO, hdd:PIO
hda: TS8GSSD25-S, ATA DISK drive
hda: applying conservative PIO "downgrade"
hda: UDMA/66 mode selected
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
hda: max request size: 64KiB
hda: 15924384 sectors (8153 MB) w/1KiB Cache, CHS=15798/16/63
hda: hda1 hda2 hda3 hda4
Driver 'sd' needs updating - please use bus_type methods
physmap platform flash device: 00400000 at ffc00000
physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
physmap-flash.0: Swapping erase regions for broken CFI table.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using physmap partition information
Creating 5 MTD partitions on "physmap-flash.0":
0x00000000-0x00300000 : "mtd_firmimg"
0x00300000-0x00370000 : "mtd_bootcode"
0x00370000-0x00380000 : "mtd_status"
0x00380000-0x00400000 : "mtd_conf"
0x00000000-0x00400000 : "mtd_allflash"
usbmon: debugfs is not available
ehci_hcd 0000:00:0e.2: EHCI Host Controller
ehci_hcd 0000:00:0e.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0e.2: irq 19, io mem 0xbfffcf00
ehci_hcd 0000:00:0e.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
ohci_hcd 0000:00:0e.0: OHCI Host Controller
ohci_hcd 0000:00:0e.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:0e.0: irq 19, io mem 0xbfffe000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
ohci_hcd 0000:00:0e.1: OHCI Host Controller
ohci_hcd 0000:00:0e.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:0e.1: irq 19, io mem 0xbfffd000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 140k init
INIT: version 2.86 booting
Setting the system clock.
Activating swap...Adding 262576k swap on /dev/hda2. Priority:-1 extents:1 across:262576k
done.
EXT3 FS on hda3, internal journal
Setting the system clock.
Cleaning up ifupdown....
Loading kernel modules...done.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...kjournald starting. Commit interval 5 seconds
EXT3 FS on hda4, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...if-up.d/mountnfs[eth0]: waiting for interface lo before doing NFS mounts (warning).
done.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
eth0: Setting full-duplex based on MII#1 link partner capability of 45e1.
Starting KURO-BOX event daemon: kuroevtd.
Starting internet superserver: inetd.
Starting periodic command scheduler: crond.
ttyS1 port init : AVR init string send.
Debian GNU/Linux 5.0 KURO-BOX ttyS0
KURO-BOX login: root
Password:[パスワードの入力] (デフォルトのパスワードはユーザ名に 同じ)
Linux KURO-BOX 2.6.25.1-kurobox #10 Sun May 4 21:50:38 JST 2008 ppc
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
KURO-BOX:~#
/* -------------------------------------------------------------------------
はい、Debian5.0(カーネル2.6.25.1)が起動しました。
ご苦労様でした!
------------------------------------------------------------------------- */
/* カーネルバージョンを確認 */
KURO-BOX:~# uname -a
Linux KURO-BOX 2.6.25.1-kurobox #10 Sun May 4 21:50:38 JST 2008 ppc GNU/Linux
KURO-BOX:~#
Return
2010/12/21